import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/atomprase",
    name: "home",
    component: () => import("../views/Home.vue"),
    meta: {
      title: "AtomPrase-首页",
    },
  },

  {
    path: "/atomprase/pdbprase",
    name: "pdbprase",
    component: () => import("../views/pdbprase.vue"),
    meta: {
      title: "AtomPrase-文件分析",
    },
  },

  {
    path: "/atomprase/display",
    name: "display",
    component: () => import("../views/display.vue"),
    meta: {
      title: "AtomPrase-展示",
    },
  },
];

const router = new VueRouter({
  mode: "history", // 如果你是 history模式 需要配置vue.config.js publicPath
  routes,
});

export default router;
